﻿/**
 * Jean-François Desgagné 2009 Portfolio
 * Copyright (c) 2009 Jean-François Desgagné <jfesgagne@gmail.com>
 * 
 * This work is licensed under a Creative Commons Attribution 3.0 United States License.
 * Some Rights Reserved.
 */
package com.jfdesgagne.jfdesgagne09.modules.showcase.controller {
	import com.jfdesgagne.jfdesgagne09.modules.showcase.model.SlideshowProxy;
	import com.jfdesgagne.jfdesgagne09.shell.view.component.Loading;
    import org.puremvc.as3.multicore.interfaces.ICommand;
    import org.puremvc.as3.multicore.interfaces.INotification;
    import org.puremvc.as3.multicore.patterns.command.SimpleCommand;
    import com.jfdesgagne.jfdesgagne09.shell.view.component.Site;
    //import com.jfdesgagne.jfdesgagne09.shell.ApplicationFacade;
	import com.jfdesgagne.jfdesgagne09.modules.showcase.ApplicationFacade;
   
    public class LoadSlideshowImageCommand extends SimpleCommand implements ICommand {
        override public function execute(note:INotification):void {
			//ApplicationFacade.getInstance(ApplicationFacade.NAME).sendNotification(ApplicationFacade.OPEN_LOADING);
			this.facade.registerProxy(new SlideshowProxy(note.getBody() as Number));
        }
    }
}